package org.zsl.mqdemo.pattern.obsever1;

public class Client {

    public static void main(String[] args) {

        Subject subject = new WexinSubjcet(); // 发布者


        Observer observer1 = new Obsever1(); // 订阅者
        Observer observer2 = new Obsever2();
        Observer observer3 = new Obsever3();

        subject.attach(observer1);
        subject.attach(observer2);
        subject.attach(observer3);


        subject.nodify("hello design pattern!"); // 消息推送




    }
}
